import React, { useEffect, useState, useContext } from "react";
import { Context } from "./Father";

const Son = () => {
  const fatherData = useContext(Context);

  return (
    <div className="App">
      <h3>我是子组件</h3>
      <p>{fatherData}</p>
    </div>
  );
};

export default Son;
